makeScaleUpAnimation

open fun makeScaleUpAnimation(@NonNull source: View, startX: Int, startY: Int, startWidth: Int, startHeight: Int): ActivityOptionsCompat(source)

Create an ActivityOptions specifying an animation where the new activity is scaled from a small originating area of the screen to its final full representation.

If the Intent this is being used with has not set its setSourceBounds, those bounds will be filled in for you based on the initial bounds passed in here.

Return

Returns a new ActivityOptions object that you can use to supply these options as the options Bundle when starting an activity.

Parameters

source

The View that the new activity is animating from. This defines the coordinate space for startX and startY.

startX

The x starting location of the new activity, relative to source.

startY

The y starting location of the activity, relative to source.

startWidth

The initial width of the new activity.

startHeight

The initial height of the new activity.